﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZLCMS.Data.Model;
using NHibernate;
using DotNet.Common.NHibernateUtil;
using System.Collections;
using NHibernate.Transform;
using ZLCMS.Business.Util;

namespace ZLCMS.Web.Wap.Code
{
    //不需要登录的页面继承该页面
    //若通过授权接口进入，则保存授权信息，但不能保证一定拥有授权
    public class MemberNoLoginPageBase : MemberPageBase
    {
        protected override void OnInit(EventArgs e)
        {
            NeedLogin = false;
            base.OnInit(e);
        }

        protected bool IsLogin()
        {
            return !string.IsNullOrEmpty(CurrentMemberAccount);
        }
    }
}